package com.silence.FinalTest;

import java.math.BigDecimal;
import java.util.*;

public class BigData_and_Reverse {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        BigDecimal a1 = scan.nextBigDecimal();
        BigDecimal a2 = scan.nextBigDecimal();
        String input = scan.next();
        StringBuilder input_buffer = new StringBuilder(input);
        StringBuilder input_buffer_reverse = input_buffer.reverse();
        System.out.println(add_op(a1,a2));
        System.out.println(input_buffer_reverse);
    }
    static BigDecimal add_op(BigDecimal a1,BigDecimal a2){
        return a1.add(a2);
    }
}